home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows (5th Edition) / Programming Windows, 5th ed. - Companion CD (097-0002183)(1999).iso / Chap23 / NetTime / NetTime.mak < prev    next >
Encoding:
Text File  |  1998-10-09  |  4.3 KB  |  168 lines

  1. # Microsoft Developer Studio Generated NMAKE File, Based on NetTime.dsp
  2. !IF "$(CFG)" == ""
  3. CFG=NetTime - Win32 Debug
  4. !MESSAGE No configuration specified. Defaulting to NetTime - Win32 Debug.
  5. !ENDIF 
  6.  
  7. !IF "$(CFG)" != "NetTime - Win32 Release" && "$(CFG)" != "NetTime - Win32 Debug"
  8. !MESSAGE Invalid configuration "$(CFG)" specified.
  9. !MESSAGE You can specify a configuration when running NMAKE
  10. !MESSAGE by defining the macro CFG on the command line. For example:
  11. !MESSAGE 
  12. !MESSAGE NMAKE /f "NetTime.mak" CFG="NetTime - Win32 Debug"
  13. !MESSAGE 
  14. !MESSAGE Possible choices for configuration are:
  15. !MESSAGE 
  16. !MESSAGE "NetTime - Win32 Release" (based on "Win32 (x86) Application")
  17. !MESSAGE "NetTime - Win32 Debug" (based on "Win32 (x86) Application")
  18. !MESSAGE 
  19. !ERROR An invalid configuration is specified.
  20. !ENDIF 
  21.  
  22. !IF "$(OS)" == "Windows_NT"
  23. NULL=
  24. !ELSE 
  25. NULL=nul
  26. !ENDIF 
  27.  
  28. CPP=cl.exe
  29. MTL=midl.exe
  30. RSC=rc.exe
  31.  
  32. !IF  "$(CFG)" == "NetTime - Win32 Release"
  33.  
  34. OUTDIR=.\Release
  35. INTDIR=.\Release
  36. # Begin Custom Macros
  37. OutDir=.\Release
  38. # End Custom Macros
  39.  
  40. ALL : "$(OUTDIR)\NetTime.exe"
  41.  
  42.  
  43. CLEAN :
  44.     -@erase "$(INTDIR)\NetTime.obj"
  45.     -@erase "$(INTDIR)\NetTime.res"
  46.     -@erase "$(INTDIR)\vc60.idb"
  47.     -@erase "$(OUTDIR)\NetTime.exe"
  48.  
  49. "$(OUTDIR)" :
  50.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  51.  
  52. CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"$(INTDIR)\NetTime.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  53. MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 
  54. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\NetTime.res" /d "NDEBUG" 
  55. BSC32=bscmake.exe
  56. BSC32_FLAGS=/nologo /o"$(OUTDIR)\NetTime.bsc" 
  57. BSC32_SBRS= \
  58.     
  59. LINK32=link.exe
  60. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\NetTime.pdb" /machine:I386 /out:"$(OUTDIR)\NetTime.exe" 
  61. LINK32_OBJS= \
  62.     "$(INTDIR)\NetTime.obj" \
  63.     "$(INTDIR)\NetTime.res"
  64.  
  65. "$(OUTDIR)\NetTime.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  66.     $(LINK32) @<<
  67.   $(LINK32_FLAGS) $(LINK32_OBJS)
  68. <<
  69.  
  70. !ELSEIF  "$(CFG)" == "NetTime - Win32 Debug"
  71.  
  72. OUTDIR=.\Debug
  73. INTDIR=.\Debug
  74. # Begin Custom Macros
  75. OutDir=.\Debug
  76. # End Custom Macros
  77.  
  78. ALL : "$(OUTDIR)\NetTime.exe"
  79.  
  80.  
  81. CLEAN :
  82.     -@erase "$(INTDIR)\NetTime.obj"
  83.     -@erase "$(INTDIR)\NetTime.res"
  84.     -@erase "$(INTDIR)\vc60.idb"
  85.     -@erase "$(INTDIR)\vc60.pdb"
  86.     -@erase "$(OUTDIR)\NetTime.exe"
  87.     -@erase "$(OUTDIR)\NetTime.ilk"
  88.     -@erase "$(OUTDIR)\NetTime.pdb"
  89.  
  90. "$(OUTDIR)" :
  91.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  92.  
  93. CPP_PROJ=/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /Fp"$(INTDIR)\NetTime.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  94. MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 
  95. RSC_PROJ=/l 0x409 /fo"$(INTDIR)\NetTime.res" /d "_DEBUG" 
  96. BSC32=bscmake.exe
  97. BSC32_FLAGS=/nologo /o"$(OUTDIR)\NetTime.bsc" 
  98. BSC32_SBRS= \
  99.     
  100. LINK32=link.exe
  101. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\NetTime.pdb" /debug /machine:I386 /out:"$(OUTDIR)\NetTime.exe" /pdbtype:sept 
  102. LINK32_OBJS= \
  103.     "$(INTDIR)\NetTime.obj" \
  104.     "$(INTDIR)\NetTime.res"
  105.  
  106. "$(OUTDIR)\NetTime.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  107.     $(LINK32) @<<
  108.   $(LINK32_FLAGS) $(LINK32_OBJS)
  109. <<
  110.  
  111. !ENDIF 
  112.  
  113. .c{$(INTDIR)}.obj::
  114.    $(CPP) @<<
  115.    $(CPP_PROJ) $< 
  116. <<
  117.  
  118. .cpp{$(INTDIR)}.obj::
  119.    $(CPP) @<<
  120.    $(CPP_PROJ) $< 
  121. <<
  122.  
  123. .cxx{$(INTDIR)}.obj::
  124.    $(CPP) @<<
  125.    $(CPP_PROJ) $< 
  126. <<
  127.  
  128. .c{$(INTDIR)}.sbr::
  129.    $(CPP) @<<
  130.    $(CPP_PROJ) $< 
  131. <<
  132.  
  133. .cpp{$(INTDIR)}.sbr::
  134.    $(CPP) @<<
  135.    $(CPP_PROJ) $< 
  136. <<
  137.  
  138. .cxx{$(INTDIR)}.sbr::
  139.    $(CPP) @<<
  140.    $(CPP_PROJ) $< 
  141. <<
  142.  
  143.  
  144. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  145. !IF EXISTS("NetTime.dep")
  146. !INCLUDE "NetTime.dep"
  147. !ELSE 
  148. !MESSAGE Warning: cannot find "NetTime.dep"
  149. !ENDIF 
  150. !ENDIF 
  151.  
  152.  
  153. !IF "$(CFG)" == "NetTime - Win32 Release" || "$(CFG)" == "NetTime - Win32 Debug"
  154. SOURCE=.\NetTime.c
  155.  
  156. "$(INTDIR)\NetTime.obj" : $(SOURCE) "$(INTDIR)"
  157.  
  158.  
  159. SOURCE=.\NetTime.rc
  160.  
  161. "$(INTDIR)\NetTime.res" : $(SOURCE) "$(INTDIR)"
  162.     $(RSC) $(RSC_PROJ) $(SOURCE)
  163.  
  164.  
  165.  
  166. !ENDIF 
  167.  
  168.